package com.open.capacity.tenant.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.open.capacity.tenant.dao.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 超级管理员dao层
 */
@Mapper
public interface AdminMapper extends BaseMapper<Admin> {

    @Select("select * from `admin` where `username`=#{username}")
    Admin findByUsername(String username);
}
